.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    border-bottom: 1px solid #d6d6d6;
    padding: 0 1vw;
    height: 10vh;
    justify-content: space-between;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.header-left a {
    text-decoration: none;
    color: black;
}

.header-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
}

.header-icon img {
    width: 3rem;
    border-radius: 10rem;
}

.fa-snapchat {
    font-size: 1.3rem;
    color: grey;
}

.header-icon span {
    font-size: 1.5rem;
    font-weight: bold;
    padding-left: 1rem;
}

.header-search {
    margin-left: 5vw;
    background-color: #e1dfdf;
    border-radius: .5rem;
}

.search-icon {
    padding-left: 1.5vw;
    color: #b1b1b1;
    font-size: 1.3rem;
}

.header-search-input {
    height: 5vh;
    width: 25vw;
    outline: none;
    border: none;
    background-color: #e1dfdf;
    border-radius: .5rem;
    text-indent: .3vw;
    font-size: 1.1rem;
}

.filter {
    margin-top: 1vh;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: 4vh 1vw;
}

.filter a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.filter-item {
    cursor: pointer;
    padding: .1rem 1rem;
    margin-right: 10px;
    border-radius: 5px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.filter-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-title {
    color: grey;
    margin-right: 2rem;
}

.filter-item-active {
    background-color: #0B62EA;
    color: white !important;
}

.list {
    margin-top: 2vh;
    padding: 1vh 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem; /* 行列间距 */
}

.item {
    padding: 1vh 1vw;
    display: flex;
    width: 15vw;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.item:hover {
    border-radius: 10px;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.list a {
    text-decoration: none;
}

.item-thumb {
    height: 40vh;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.item-title {
    align-content: center;
    height: 5vh;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
    color: black !important;
}

.item-intro {
    height: 5vh;
    overflow: hidden;
    text-overflow: ellipsis;
    color: grey;
    width: 100%;
}

.pagination li {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    list-style: none;
    color: black;
    text-decoration: none;
    margin: 0 1vw;
    align-items: center;
    align-content: center;
    line-height: 2vh;
}

h1 {
    font-size: 1.2rem;
    text-overflow: ellipsis;
    max-lines: 1;
    overflow-y: hidden;
    height: 100%;
    white-space: nowrap;
}

.pagination li a {
    padding: 1vh 2vw;
}

.pagination li:hover {
    border-radius: 10px;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pagination li a {
    text-decoration: none;
    color: black;
}

.pagination .active {
    background-color: #0B62EA;
    padding: 1vh 2vw;
    color: white;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 2vh 0 0 0;
}

@media (max-width: 767px) {
    .header-icon {
        display: none !important;
    }

    .header-search-input {
        width: 60vw !important;
    }

    .list {
        gap: 0 !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .item-thumb {
        height: 23vh !important;
    }

    .item {
        width: 30vw !important;
    }
}